package diamondServer.businesslogic.configs;

import java.io.File;
import java.io.IOException;

import org.xml.sax.SAXException;

import diamondServer.businesslogic.resource.ResourceData;



public class Main {
	public static void main(String[] args) 
	throws SAXException, IOException {

		ResourceDataReader reader = new XMLResourceDataReader(
				new File("resources.xml"));
		for (ResourceData resData : reader.read()) {
			System.out.println(resData.getMessageClassName());
			System.out.println(resData.getServiceClassName());
		}
		System.out.println("empty? " + reader.read());
	}
}
